package com.home.viewpager2demo

import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment

// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private const val ARG_PARAM1 = "param1"
private const val ARG_PARAM2 = "param2"

/**
 * A simple [Fragment] subclass.
 * Use the [OneFragment.newInstance] factory method to
 * create an instance of this fragment.
 */
class OneFragment : Fragment() {
  override fun onAttach(context: Context) {
    super.onAttach(context)
    Log.e("zzm debug", "One onAttach")
  }

  override fun onActivityCreated(savedInstanceState: Bundle?) {
    super.onActivityCreated(savedInstanceState)
    Log.e("zzm debug", "One onActivityCreated")
  }

  override fun onStart() {
    super.onStart()
    Log.e("zzm debug", "One onStart")
  }

  override fun onResume() {
    super.onResume()
    Log.e("zzm debug", "One onResume")
  }

  override fun onDestroy() {
    super.onDestroy()
    Log.e("zzm debug", "One onDestroy")
  }

  override fun onDetach() {
    super.onDetach()
    Log.e("zzm debug", "One onDetach")
  }

  override fun onDestroyView() {
    super.onDestroyView()
    Log.e("zzm debug", "One onDestroyView")
  }
}